//
//  Lothar+Main.m
//  Main_Category
//
//  Created by 于鹏 on 2017/8/11.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import "Lothar+Main.h"
NSString * const kLotharTargetMain = @"Main";

NSString * const kLotharActionTabBarController = @"tabBarController";
NSString * const kLotharActionNavBarController = @"navBarController";
NSString * const kLotharActionSetTabBarRootVC = @"setTabBarRootViewController";
NSString * const kLotharActionSetNavBarRootVC = @"setNavBarRootViewController";
@implementation Lothar (Main)

- (UITabBarController *)main_tabBarViewContoller {
    /**XLTabBarController *tabBar = [[XLTabBarController alloc]init];*/
    return [self performTarget:kLotharTargetMain action:kLotharActionTabBarController params:nil shouldCacheTarget:NO];
}

- (UINavigationController *)main_navBarViewContoller:(UIViewController *)rootVC {
    /*XLNavigationController *nav = [[XLNavigationController alloc]initWithRootViewController:rootVC];*/
    return [self performTarget:kLotharTargetMain action:kLotharActionNavBarController params:@{@"rootVC":rootVC} shouldCacheTarget:NO];
}

- (id)main_setTabBarRootViewController {
    return [self performTarget:kLotharTargetMain action:kLotharActionSetTabBarRootVC params:nil shouldCacheTarget:NO];
}

- (id)main_setNavBarRootViewController:(UIViewController *)rootVC {
    return [self performTarget:kLotharTargetMain action:kLotharActionSetNavBarRootVC params:@{@"rootVC":rootVC} shouldCacheTarget:NO];
}
//- (UINavigationController *)main_navBarViewContoller {
//    return [self performTarget:kLotharTargetMain action:kLotharActionNavBarController params:nil shouldCacheTarget:NO];
//}
@end
